#include <ArduinoJson.h>

#ifndef MQTT_H
#define MQTT_H

void connect_mqtt(const char *device_id, const char *mqtt_broker, const char *topic, const char *mqtt_username, const char *mqtt_password, const int mqtt_port);

void subscribe(const char *topic);

void publish();

void callback(char *topic, byte *payload, unsigned int length);

void set_temperature(float tem);

void set_humidity(float hum);

void set_light_magnitude(float light);

void set_h2s(float num);
#endif